import Vue from 'vue'
// uniapp 已默认安装，不需要重新下载
import vuex from 'vuex'

import search from './modules/search'
import user from './modules/user'
import getters from './getters'
import video from './modules/video'
Vue.use(vuex)

// 创建store实例
const store = new vuex.Store({
  modules: {
    search,
    user,
    video
  },
  getters
})

// 注意这里向外导出不是对象格式 { store }
export default store
